Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 7 - Transform Objects / Transform Objects Reference
Data Structures


Rotate Transform Data Structure

You can use a rotate transform data structure to specify a rotate transform (for example, when calling the Q3RotateTransform_NewData function). The rotate transform data structure is defined by the TQ3RotateTransformData data type.

typedef struct TQ3RotateTransformData {
   TQ3Axis                    axis;
   float                      radians;
} TQ3RotateTransformData;
Field Description
axis
The axis of rotation. You can use the constants kQ3AxisX, kQ3AxisY, and kQ3AxisZ to specify an axis.
radians
The number of radians to rotate around the axis of rotation.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996